package com.corn.turorial.spring.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2021/2/8 10:15
 */

@Slf4j
//@WebListener
public class MyCustomerListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info(" servlet 上下文 start");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info(" servlet 上下文 destroy");
    }
}
